<template>
  <div class="w">
    <ul>
      <li
        v-for="item in arr"
        :key="item.aid"
        @click="btn([item.aid, item.bvid, item.cid])"
      >
        <img :src="item.pic" alt="" />

        <h3>{{ item.title }}</h3>
        <!-- <p>{{ item.desc }}</p> -->
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: ['arr'],
  data() {
    return {}
  },
  methods: {
    btn(url) {
      this.$emit('link', url)
    },
  },
}
</script>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.w {
  width: 1400px;
  margin: 0 auto;
  ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top:30px;
    li {
      width: 18%;
      list-style: none;
      margin-bottom: 20px;
      cursor: pointer;
      img {
        width: 100%;
        height: 160px;
        cursor: pointer;
      }
      iframe {
        width: 100%;
        height: 160px;
      }
      h3 {
        width: 100%;
        height: 110px;
        &:hover {
          color: #00b6e8;
        }
      }
    }
  }
}
</style>